<?php

use think\facade\Route;

// Route::get('customer/public', 'customer/Customer/publicIndex')->middleware('checkParams');
// Route::get('customer/:id', 'customer/Customer/show')->middleware('checkParams');
// Route::get('customer', 'customer/Customer/index')->middleware('checkParams');
// Route::post('customer', 'customer/Customer/create')->middleware('checkParams');
// Route::put('customer/public/fishing', 'customer/Customer/fishingPublicCustomer')->middleware('checkParams');
// Route::put('customer/public/allocation', 'customer/Customer/allocationPublicCustomer')->middleware('checkParams');
// Route::put('customer/returnPublic', 'customer/Customer/returnPublic')->middleware('checkParams');
// Route::put('customer', 'customer/Customer/update')->middleware('checkParams');
// Route::delete('customer', 'customer/Customer/delete')->middleware('checkParams');



// customer 应用的路由配置
// Route::group('customer', function () {
//     Route::get('/public/allocation', 'customer/Customer/allocationPublicCustomer');
//     Route::get('/public', 'customer/Customer/publicIndex');
//     Route::get(':id', 'customer/Customer/show');
//     Route::get('', 'customer/Customer/index');
//     Route::post('', 'customer/Customer/create');
//     Route::put('/public/fishing', 'customer/Customer/fishingPublicCustomer');
//     Route::put('', 'customer/Customer/update');
//     Route::delete('', 'customer/Customer/delete');
// })->middleware('checkParams');





Route::group('customerContact', function () {
    Route::get(':id', 'customer/CustomerContact/show');
    Route::get('', 'customer/CustomerContact/index');
    Route::post('', 'customer/CustomerContact/create');
    Route::put('', 'customer/CustomerContact/update');
    Route::delete('', 'customer/CustomerContact/delete');
})->middleware('checkParams');




Route::post('upload', 'customer/Upload/upload');


Route::any('uploadImgByBase64', 'customer/Test.AliyunOss/uploadImgByBase64');
Route::any('base64ImageGenerateThumb', 'customer/Test.AliyunOss/base64ImageGenerateThumb');
Route::any('generateTextWatermark', 'customer/Test.AliyunOss/generateTextWatermark');



Route::get('test/bucket/:id', 'customer/Test.AliyunOss/show');
Route::get('testBucket', 'customer/Test.AliyunOss/bucketsIndex');
// Route::post('customer', 'customer/Test.AliyunOss/create');
// Route::put('customer/:id', 'customer/Test.AliyunOss/update');
// Route::delete('customer/:id', 'customer/Test.AliyunOss/delete');